package com.unittec.drainage.provider.auth.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.unittec.drainage.provider.root.EntityRoot;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @description 用户角色信息实体
 * @author chengjie
 * @date 2019/10/16
 */
@Data
@Accessors(chain = true)
@TableName("sys_user_role")
@EqualsAndHashCode(callSuper = false)
public class SysUserRole extends EntityRoot implements Serializable {

    private static final long serialVersionUID = -7737121464830423040L;
    /**
     * 用户Id
     */
    private String userId;
    /**
     * 角色Id
     */
    private String roleId;

    public SysUserRole() {

    }

    public SysUserRole(String userId, String roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

}
